#ifndef __LOWPASS_FILTER_H
#define __LOWPASS_FILTER_H


#include "foc_utils.h"
#include "Simple_time.h"

typedef struct 
{
    float Tf;    //Low pass filter time constant
    unsigned long timestamp_prev;  //!< Last execution timestamp
    float y_prev; //!< filtered value in previous execution step 
}LowPassFilter_t;

float LowPassFilter_GetValue(LowPassFilter_t *handle,float x);

#endif // LOWPASS_FILTER_H
